package com.oa.service.organization.impl;

import java.util.List;

import com.oa.dao.organization.OrganizationDao;
import com.oa.model.Organization;
import com.oa.service.impl.GenericManagerImpl;
import com.oa.service.organization.OrganizationManager;

public class OrganizationManagerImpl extends GenericManagerImpl<Organization, Long> implements OrganizationManager {

	private OrganizationDao organizationDao;
	
	public OrganizationManagerImpl(OrganizationDao organizationDao) {
		super(organizationDao);
		this.organizationDao = organizationDao;
	}

	public List<Organization> findOrganizationsByParentOrgId(Long parentOrgId) {
		List<Organization> organizations = organizationDao.findOrganizationsByParentOrgId(parentOrgId);
		return organizations;
	}
}
